//引用vue-router
import { createRouter,createWebHashHistory} from "vue-router";
//引用组件
import YiBiaoPan from '@/components/YiBiaoPan.vue'
import JiaoShi from '@/components/JiaoShi.vue'
import XueSheng from '@/components/XueSheng.vue'
import GongGao from '@/components/GongGao.vue'
import XiTong from '@/components/XiTong.vue'
import PanDuan from '@/components/PanDuan.vue'
import WenTi from '@/components/WenTi.vue'
import ZengJia from '@/components/ZengJia.vue'
import DaoRu from '@/components/DaoRu.vue'
import BiSai from '@/components/BiSai.vue'
import ChuangJian from '@/components/ChuangJian.vue'
import KeCheng from '@/components/KeCheng.vue'
import ChuangJiankc from '@/components/ChuangJiankc.vue'
import SubHomePage from '@/components/SubHomePage.vue'
import QianTaokc from '@/components/QianTaokc.vue'



//创建vue-router

const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/ybp',
            component:YiBiaoPan
        },
        {
            path:'/js',
            component:JiaoShi
        },
        {
            path:'/xs',
            component:XueSheng
        },
        {
            path:'/gg',
            component:GongGao
        },
        {
            path:'/xt',
            component:XiTong
        },
        {
            path:'/pd',
            component:PanDuan
        },
        {
            path:'/wt',
            component:WenTi
        },
        {
            path:'/zj',
            component:ZengJia
        },
        {
            path:'/dr',
            component:DaoRu
        },
        {
            path:'/bs',
            component:BiSai

        },
        {
            path:'/cj',
            component:ChuangJian
        },
        {
            path:'/kc',
            component:KeCheng,
            children:[
                {
                    path:'qiantaokecheng/:id',
                    component:QianTaokc
                },
            ]
        },
        {
            path:'/cjkc',
            component:ChuangJiankc
        },
         {
            name:'dongtaichuanzhi',
            path:'/subhomepage/:id',
            component:SubHomePage
        }
      



    ]
})
export default router